'''
Created on 2012-3-27下午10:51:50

@author: yasenagat
@email:   yasenagat@gmail.com

'''
#write方式打开文件
f = open('too.txt','w')

c = 0
while c<10:
    #把print的内容打印到file文件中
    print(c,file=f) 
    c+=1
    
f.close()
